{include file="public/header" /}

<body>
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span> 用户管理
        <span class="c-gray en">&gt;</span> 用户列表
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
            href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="page-container">
        <form action="" method="get">
            <div class="text-c">
                地区国家：
                <span class="select-box" style="width: 100px;">
                    <select name="region" class="select">
                        <option value="">全部国家</option>
                        {foreach :model('app\models\Region')->select() as $region}
                        <option value="{$region.id}" {if isset($_GET['region']) && $_GET['region'] eq $region['id']}selected{/if}>
                            {$region.country}</option>
                        {/foreach}
                    </select>
                </span>
                <button type="submit" class="btn btn-success">搜索</button>
            </div>
        </form>

        <div class="cl pd-5 bg-1 bk-gray mt-20">
            <span class="l">
                <label for=""></label>
            </span>
            <span class="r">
                共有数据：<strong>{$list->total()}</strong> 条</span>
        </div>
        <table class="table table-border table-bordered table-hover table-bg">
            <thead>
                <tr>
                    <th scope="col" colspan="9">账户列表</th>
                </tr>
                <tr class="text-c">
                    <th width="30">ID</th>
                    <th width="60">地区</th>
                    <th width="100">价格</th>
                    <th width="100">日期</th>
                </tr>
            </thead>
            <tbody>
                {foreach $list as $v}
                <tr class="text-c">
                    <td>{$v.id}</td>
                    <td>{$v.type}</td>
                    <td>{$v.rate}</td>
                    <td>{$v.created}</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        <div class="page">
            {$list->render()|raw}
        </div>
    </div>

    {include file="public/footer" /}